<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title><ui:insert name="title">JEE Vendas</ui:insert></title>
	<link rel="stylesheet" type="text/css"
		href="${request.contextPath}/css/template.css" />
		<link rel="stylesheet" type="text/css"
		href="${request.contextPath}/css/fontes.css" />
</h:head>

<body>
	<div id="wrapper">
		<div id="header">
			<ui:insert name="header">
				<h:form>
					<p:menubar autoDisplay="off">
						<p:menuitem value="Pagina Inicial" outcome="index" icon="ui-icon-home" /> 
						<p:submenu label="Produtos">
							<p:menuitem value="Cadastrar Novo Produto" outcome="cadastroProduto" />
							<p:menuitem value="Listar Produtos" outcome="produtos" />
						</p:submenu>
						<p:submenu label="Clientes">
							<p:menuitem value="Item 1" url="#" />
						</p:submenu>
						<p:submenu label="Fornecedores">
							<p:menuitem value="Item 1" url="#" />
						</p:submenu>
						<p:submenu label="Vendas">
							<p:menuitem value="Item 1" url="#" />
						</p:submenu>
						<p:submenu label="Filiais">
							<p:menuitem value="Item 1" url="#" />
						</p:submenu>
						<p:submenu label="Marcas">
							<p:menuitem value="Item 1" url="#" />
						</p:submenu>
						<p:submenu label="Caixa">
							<p:menuitem value="Item 1" url="#" />
						</p:submenu>						
						<p:submenu label="Usuarios">
							<p:menuitem value="Item 1" url="#" />
						</p:submenu>
						<f:facet name="options">
							<h:outputText value="Bem Vindo: #{login.u.nome}" />
							<p:commandButton value="Sair do Sistema" action="#{login.realizarLogoff}" />
						</f:facet>
					</p:menubar>
				</h:form>
			</ui:insert>
		</div>
  		<!-- 
  		<div id="rightmenu">
  			
  		</div>
  		 -->
		<div id="content">
			<ui:insert name="content">
    		content
  			</ui:insert>
		</div>
		<div id="footer">
			<ui:insert name="footer">
				<h:outputText value="Copyright 2014"/>
			</ui:insert>
		</div>
	</div>
</body>

</html>
